package org.csc.sss.core.enums;

/**
 *
 * @author shine
 * @email tsh721@126.com
 * @date 2018-9-19 20:48:07
 */
public enum GenderEnum {

    // 请根据实际情况改成对应的值和备注
    UNKNOW(0, "未知"),
    MALE(1, "男"),
    FEMALE(2, "女");

    private final int value;
    private final String remark;

    private GenderEnum(int value, String remark) {
        this.value = value;
        this.remark = remark;
    }

    public int getValue() {
        return value;
    }

    public String getRemark() {
        return remark;
    }

    public static GenderEnum getByValue(Integer value) {
        if (null != value) {
            for (GenderEnum o : GenderEnum.values()) {
                if (o.value == value) {
                    return o;
                }
            }
        }
        return null;
    }
}
